<?php
include '../../include/db.php';
$activityId = $_REQUEST["id"];
$name = $_REQUEST["cmtator"];
$content = $_REQUEST["comment"];
$userId = 0;
$time = date('Y-m-d g:i:s');
$statue = 0 ;
InsertComment($activityId, $userId, $name, $content, $time, $statue);
$comment = array(
    "comment" => $content,
    "cmtator" => $name,
    "time" => $time,
);

echo json_encode($comment);